package org.opens.command;

import lombok.extern.slf4j.Slf4j;
import org.opens.util.TelnetUtil;
import org.springframework.shell.standard.ShellComponent;
import org.springframework.shell.standard.ShellMethod;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2023/1/14
 */
@ShellComponent
@Slf4j
public class TelnetShell {

    @ShellMethod(value = "telnet ${host} ${ip}")
    public void telnet(String host, int port) {
        TelnetUtil.telnet2(host, port);
    }

}
